home *** CD-ROM | disk | FTP | other *** search
/ 1st Multimedia Mac Shareware / Multimedia Shareware CD-ROM - BetaCorp.iso / Referenceƒ / US Time / cards.xml < prev    next >
Encoding:
Text File  |  1992-08-09  |  13.0 KB  |  475 lines

  1. card_3627.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>3627</id>
  6.     <filler1>0</filler1>
  7.     <bitmap>BMAP_2567.pbm</bitmap>
  8.     <cantDelete> <false /> </cantDelete>
  9.     <showPict> <true /> </showPict>
  10.     <dontSearch> <false /> </dontSearch>
  11.     <owner>3241</owner>
  12.     <link rel="stylesheet" type="text/css" href="stylesheet_2994.css" />
  13.     <part>
  14.         <id>11</id>
  15.         <type>field</type>
  16.         <visible> <true /> </visible>
  17.         <dontWrap> <false /> </dontWrap>
  18.         <dontSearch> <false /> </dontSearch>
  19.         <sharedText> <false /> </sharedText>
  20.         <fixedLineHeight> <true /> </fixedLineHeight>
  21.         <autoTab> <false /> </autoTab>
  22.         <lockText> <true /> </lockText>
  23.         <rect>
  24.             <left>1</left>
  25.             <top>108</top>
  26.             <right>88</right>
  27.             <bottom>124</bottom>
  28.         </rect>
  29.         <style>shadow</style>
  30.         <autoSelect> <false /> </autoSelect>
  31.         <showLines> <false /> </showLines>
  32.         <wideMargins> <false /> </wideMargins>
  33.         <multipleLines> <false /> </multipleLines>
  34.         <reservedFamily> 0 </reservedFamily>
  35.         <titleWidth>0</titleWidth>
  36.         <icon>0</icon>
  37.         <textAlign>center</textAlign>
  38.         <font>Geneva</font>
  39.         <textSize>9</textSize>
  40.         <textStyle>plain</textStyle>
  41.         <textHeight>12</textHeight>
  42.         <name></name>
  43.         <script></script>
  44.     </part>
  45.     <part>
  46.         <id>2</id>
  47.         <type>field</type>
  48.         <visible> <true /> </visible>
  49.         <dontWrap> <false /> </dontWrap>
  50.         <dontSearch> <false /> </dontSearch>
  51.         <sharedText> <false /> </sharedText>
  52.         <fixedLineHeight> <true /> </fixedLineHeight>
  53.         <autoTab> <false /> </autoTab>
  54.         <lockText> <true /> </lockText>
  55.         <rect>
  56.             <left>1</left>
  57.             <top>121</top>
  58.             <right>88</right>
  59.             <bottom>138</bottom>
  60.         </rect>
  61.         <style>shadow</style>
  62.         <autoSelect> <false /> </autoSelect>
  63.         <showLines> <false /> </showLines>
  64.         <wideMargins> <false /> </wideMargins>
  65.         <multipleLines> <false /> </multipleLines>
  66.         <reservedFamily> 0 </reservedFamily>
  67.         <titleWidth>0</titleWidth>
  68.         <icon>0</icon>
  69.         <textAlign>center</textAlign>
  70.         <font>Geneva</font>
  71.         <textSize>9</textSize>
  72.         <textStyle>plain</textStyle>
  73.         <textHeight>12</textHeight>
  74.         <name>Pacific</name>
  75.         <script></script>
  76.     </part>
  77.     <part>
  78.         <id>12</id>
  79.         <type>field</type>
  80.         <visible> <true /> </visible>
  81.         <dontWrap> <false /> </dontWrap>
  82.         <dontSearch> <false /> </dontSearch>
  83.         <sharedText> <false /> </sharedText>
  84.         <fixedLineHeight> <true /> </fixedLineHeight>
  85.         <autoTab> <false /> </autoTab>
  86.         <lockText> <true /> </lockText>
  87.         <rect>
  88.             <left>112</left>
  89.             <top>118</top>
  90.             <right>198</right>
  91.             <bottom>134</bottom>
  92.         </rect>
  93.         <style>shadow</style>
  94.         <autoSelect> <false /> </autoSelect>
  95.         <showLines> <false /> </showLines>
  96.         <wideMargins> <false /> </wideMargins>
  97.         <multipleLines> <false /> </multipleLines>
  98.         <reservedFamily> 0 </reservedFamily>
  99.         <titleWidth>0</titleWidth>
  100.         <icon>0</icon>
  101.         <textAlign>center</textAlign>
  102.         <font>Geneva</font>
  103.         <textSize>9</textSize>
  104.         <textStyle>plain</textStyle>
  105.         <textHeight>12</textHeight>
  106.         <name></name>
  107.         <script></script>
  108.     </part>
  109.     <part>
  110.         <id>6</id>
  111.         <type>field</type>
  112.         <visible> <true /> </visible>
  113.         <dontWrap> <false /> </dontWrap>
  114.         <dontSearch> <false /> </dontSearch>
  115.         <sharedText> <false /> </sharedText>
  116.         <fixedLineHeight> <true /> </fixedLineHeight>
  117.         <autoTab> <false /> </autoTab>
  118.         <lockText> <true /> </lockText>
  119.         <rect>
  120.             <left>112</left>
  121.             <top>131</top>
  122.             <right>198</right>
  123.             <bottom>148</bottom>
  124.         </rect>
  125.         <style>shadow</style>
  126.         <autoSelect> <false /> </autoSelect>
  127.         <showLines> <false /> </showLines>
  128.         <wideMargins> <false /> </wideMargins>
  129.         <multipleLines> <false /> </multipleLines>
  130.         <reservedFamily> 0 </reservedFamily>
  131.         <titleWidth>0</titleWidth>
  132.         <icon>0</icon>
  133.         <textAlign>center</textAlign>
  134.         <font>Geneva</font>
  135.         <textSize>9</textSize>
  136.         <textStyle>plain</textStyle>
  137.         <textHeight>12</textHeight>
  138.         <name>Mountain</name>
  139.         <script></script>
  140.     </part>
  141.     <part>
  142.         <id>13</id>
  143.         <type>field</type>
  144.         <visible> <true /> </visible>
  145.         <dontWrap> <false /> </dontWrap>
  146.         <dontSearch> <false /> </dontSearch>
  147.         <sharedText> <false /> </sharedText>
  148.         <fixedLineHeight> <true /> </fixedLineHeight>
  149.         <autoTab> <false /> </autoTab>
  150.         <lockText> <true /> </lockText>
  151.         <rect>
  152.             <left>236</left>
  153.             <top>133</top>
  154.             <right>322</right>
  155.             <bottom>149</bottom>
  156.         </rect>
  157.         <style>shadow</style>
  158.         <autoSelect> <false /> </autoSelect>
  159.         <showLines> <false /> </showLines>
  160.         <wideMargins> <false /> </wideMargins>
  161.         <multipleLines> <false /> </multipleLines>
  162.         <reservedFamily> 0 </reservedFamily>
  163.         <titleWidth>0</titleWidth>
  164.         <icon>0</icon>
  165.         <textAlign>center</textAlign>
  166.         <font>Geneva</font>
  167.         <textSize>9</textSize>
  168.         <textStyle>plain</textStyle>
  169.         <textHeight>12</textHeight>
  170.         <name></name>
  171.         <script></script>
  172.     </part>
  173.     <part>
  174.         <id>14</id>
  175.         <type>field</type>
  176.         <visible> <true /> </visible>
  177.         <dontWrap> <false /> </dontWrap>
  178.         <dontSearch> <false /> </dontSearch>
  179.         <sharedText> <false /> </sharedText>
  180.         <fixedLineHeight> <true /> </fixedLineHeight>
  181.         <autoTab> <false /> </autoTab>
  182.         <lockText> <true /> </lockText>
  183.         <rect>
  184.             <left>414</left>
  185.             <top>226</top>
  186.             <right>500</right>
  187.             <bottom>242</bottom>
  188.         </rect>
  189.         <style>shadow</style>
  190.         <autoSelect> <false /> </autoSelect>
  191.         <showLines> <false /> </showLines>
  192.         <wideMargins> <false /> </wideMargins>
  193.         <multipleLines> <false /> </multipleLines>
  194.         <reservedFamily> 0 </reservedFamily>
  195.         <titleWidth>0</titleWidth>
  196.         <icon>0</icon>
  197.         <textAlign>center</textAlign>
  198.         <font>Geneva</font>
  199.         <textSize>9</textSize>
  200.         <textStyle>plain</textStyle>
  201.         <textHeight>12</textHeight>
  202.         <name></name>
  203.         <script></script>
  204.     </part>
  205.     <part>
  206.         <id>7</id>
  207.         <type>field</type>
  208.         <visible> <true /> </visible>
  209.         <dontWrap> <false /> </dontWrap>
  210.         <dontSearch> <false /> </dontSearch>
  211.         <sharedText> <false /> </sharedText>
  212.         <fixedLineHeight> <true /> </fixedLineHeight>
  213.         <autoTab> <false /> </autoTab>
  214.         <lockText> <true /> </lockText>
  215.         <rect>
  216.             <left>236</left>
  217.             <top>146</top>
  218.             <right>322</right>
  219.             <bottom>163</bottom>
  220.         </rect>
  221.         <style>shadow</style>
  222.         <autoSelect> <false /> </autoSelect>
  223.         <showLines> <false /> </showLines>
  224.         <wideMargins> <false /> </wideMargins>
  225.         <multipleLines> <false /> </multipleLines>
  226.         <reservedFamily> 0 </reservedFamily>
  227.         <titleWidth>0</titleWidth>
  228.         <icon>0</icon>
  229.         <textAlign>center</textAlign>
  230.         <font>Geneva</font>
  231.         <textSize>9</textSize>
  232.         <textStyle>plain</textStyle>
  233.         <textHeight>12</textHeight>
  234.         <name>Central</name>
  235.         <script></script>
  236.     </part>
  237.     <part>
  238.         <id>8</id>
  239.         <type>field</type>
  240.         <visible> <true /> </visible>
  241.         <dontWrap> <false /> </dontWrap>
  242.         <dontSearch> <false /> </dontSearch>
  243.         <sharedText> <false /> </sharedText>
  244.         <fixedLineHeight> <true /> </fixedLineHeight>
  245.         <autoTab> <false /> </autoTab>
  246.         <lockText> <true /> </lockText>
  247.         <rect>
  248.             <left>414</left>
  249.             <top>239</top>
  250.             <right>500</right>
  251.             <bottom>256</bottom>
  252.         </rect>
  253.         <style>shadow</style>
  254.         <autoSelect> <false /> </autoSelect>
  255.         <showLines> <false /> </showLines>
  256.         <wideMargins> <false /> </wideMargins>
  257.         <multipleLines> <false /> </multipleLines>
  258.         <reservedFamily> 0 </reservedFamily>
  259.         <titleWidth>0</titleWidth>
  260.         <icon>0</icon>
  261.         <textAlign>center</textAlign>
  262.         <font>Geneva</font>
  263.         <textSize>9</textSize>
  264.         <textStyle>plain</textStyle>
  265.         <textHeight>12</textHeight>
  266.         <name>Eastern</name>
  267.         <script></script>
  268.     </part>
  269.     <part>
  270.         <id>9</id>
  271.         <type>field</type>
  272.         <visible> <true /> </visible>
  273.         <dontWrap> <false /> </dontWrap>
  274.         <dontSearch> <false /> </dontSearch>
  275.         <sharedText> <false /> </sharedText>
  276.         <fixedLineHeight> <true /> </fixedLineHeight>
  277.         <autoTab> <false /> </autoTab>
  278.         <lockText> <true /> </lockText>
  279.         <rect>
  280.             <left>141</left>
  281.             <top>323</top>
  282.             <right>354</right>
  283.             <bottom>339</bottom>
  284.         </rect>
  285.         <style>shadow</style>
  286.         <autoSelect> <false /> </autoSelect>
  287.         <showLines> <false /> </showLines>
  288.         <wideMargins> <false /> </wideMargins>
  289.         <multipleLines> <false /> </multipleLines>
  290.         <reservedFamily> 0 </reservedFamily>
  291.         <titleWidth>0</titleWidth>
  292.         <icon>0</icon>
  293.         <textAlign>center</textAlign>
  294.         <font>Geneva</font>
  295.         <textSize>9</textSize>
  296.         <textStyle>extend</textStyle>
  297.         <textHeight>12</textHeight>
  298.         <name>Zone</name>
  299.         <script></script>
  300.     </part>
  301.     <part>
  302.         <id>15</id>
  303.         <type>button</type>
  304.         <visible> <true /> </visible>
  305.         <reserved5> 0 </reserved5>
  306.         <reserved4> 0 </reserved4>
  307.         <reserved3> 0 </reserved3>
  308.         <reserved2> 0 </reserved2>
  309.         <reserved1> 0 </reserved1>
  310.         <enabled> <true /> </enabled>
  311.         <rect>
  312.             <left>1</left>
  313.             <top>108</top>
  314.             <right>89</right>
  315.             <bottom>139</bottom>
  316.         </rect>
  317.         <style>transparent</style>
  318.         <showName> <false /> </showName>
  319.         <highlight> <false /> </highlight>
  320.         <autoHighlight> <false /> </autoHighlight>
  321.         <sharedHighlight> <true /> </sharedHighlight>
  322.         <family>0</family>
  323.         <titleWidth>0</titleWidth>
  324.         <icon>0</icon>
  325.         <textAlign>center</textAlign>
  326.         <font>Chicago</font>
  327.         <textSize>12</textSize>
  328.         <textStyle>plain</textStyle>
  329.         <name></name>
  330.         <script>on mouseUp
  331. put "Pacific" into last word of card field "Zone"
  332. end mouseUp
  333. </script>
  334.     </part>
  335.     <part>
  336.         <id>16</id>
  337.         <type>button</type>
  338.         <visible> <true /> </visible>
  339.         <reserved5> 0 </reserved5>
  340.         <reserved4> 0 </reserved4>
  341.         <reserved3> 0 </reserved3>
  342.         <reserved2> 0 </reserved2>
  343.         <reserved1> 0 </reserved1>
  344.         <enabled> <true /> </enabled>
  345.         <rect>
  346.             <left>111</left>
  347.             <top>118</top>
  348.             <right>199</right>
  349.             <bottom>149</bottom>
  350.         </rect>
  351.         <style>transparent</style>
  352.         <showName> <false /> </showName>
  353.         <highlight> <false /> </highlight>
  354.         <autoHighlight> <false /> </autoHighlight>
  355.         <sharedHighlight> <true /> </sharedHighlight>
  356.         <family>0</family>
  357.         <titleWidth>0</titleWidth>
  358.         <icon>0</icon>
  359.         <textAlign>center</textAlign>
  360.         <font>Chicago</font>
  361.         <textSize>12</textSize>
  362.         <textStyle>plain</textStyle>
  363.         <name></name>
  364.         <script>on mouseUp
  365. put "Mountain" into last word of card field "Zone"
  366. end mouseUp
  367. </script>
  368.     </part>
  369.     <part>
  370.         <id>17</id>
  371.         <type>button</type>
  372.         <visible> <true /> </visible>
  373.         <reserved5> 0 </reserved5>
  374.         <reserved4> 0 </reserved4>
  375.         <reserved3> 0 </reserved3>
  376.         <reserved2> 0 </reserved2>
  377.         <reserved1> 0 </reserved1>
  378.         <enabled> <true /> </enabled>
  379.         <rect>
  380.             <left>235</left>
  381.             <top>133</top>
  382.             <right>323</right>
  383.             <bottom>164</bottom>
  384.         </rect>
  385.         <style>transparent</style>
  386.         <showName> <false /> </showName>
  387.         <highlight> <false /> </highlight>
  388.         <autoHighlight> <false /> </autoHighlight>
  389.         <sharedHighlight> <true /> </sharedHighlight>
  390.         <family>0</family>
  391.         <titleWidth>0</titleWidth>
  392.         <icon>0</icon>
  393.         <textAlign>center</textAlign>
  394.         <font>Chicago</font>
  395.         <textSize>12</textSize>
  396.         <textStyle>plain</textStyle>
  397.         <name></name>
  398.         <script>on mouseUp
  399. put "Central" into last word of card field "Zone"
  400. end mouseUp
  401. </script>
  402.     </part>
  403.     <part>
  404.         <id>18</id>
  405.         <type>button</type>
  406.         <visible> <true /> </visible>
  407.         <reserved5> 0 </reserved5>
  408.         <reserved4> 0 </reserved4>
  409.         <reserved3> 0 </reserved3>
  410.         <reserved2> 0 </reserved2>
  411.         <reserved1> 0 </reserved1>
  412.         <enabled> <true /> </enabled>
  413.         <rect>
  414.             <left>413</left>
  415.             <top>225</top>
  416.             <right>501</right>
  417.             <bottom>256</bottom>
  418.         </rect>
  419.         <style>transparent</style>
  420.         <showName> <false /> </showName>
  421.         <highlight> <false /> </highlight>
  422.         <autoHighlight> <false /> </autoHighlight>
  423.         <sharedHighlight> <true /> </sharedHighlight>
  424.         <family>0</family>
  425.         <titleWidth>0</titleWidth>
  426.         <icon>0</icon>
  427.         <textAlign>center</textAlign>
  428.         <font>Chicago</font>
  429.         <textSize>12</textSize>
  430.         <textStyle>plain</textStyle>
  431.         <name></name>
  432.         <script>on mouseUp
  433. put "Eastern" into last word of card field "Zone"
  434. end mouseUp
  435. </script>
  436.     </part>
  437.     <content>
  438.         <layer>card</layer>
  439.         <id>2</id>
  440.         <text>7:18:28 PM</text>
  441.     </content>
  442.     <content>
  443.         <layer>card</layer>
  444.         <id>9</id>
  445.         <text>Your time zone is:  Pacific</text>
  446.     </content>
  447.     <content>
  448.         <layer>card</layer>
  449.         <id>6</id>
  450.         <text>8:18:28 PM</text>
  451.     </content>
  452.     <content>
  453.         <layer>card</layer>
  454.         <id>7</id>
  455.         <text>9:18:28 PM</text>
  456.     </content>
  457.     <content>
  458.         <layer>card</layer>
  459.         <id>8</id>
  460.         <text>10:18:28 PM</text>
  461.     </content>
  462.     <content>
  463.         <layer>card</layer>
  464.         <id>14</id>
  465.         <text>Eastern</text>
  466.     </content>
  467.     <content>
  468.         <layer>card</layer>
  469.         <id>13</id>
  470.         <text>Central</text>
  471.     </content>
  472.     <content>
  473.         <layer>card</layer>
  474.         <id>11</id>
  475.         <text>Pacfic</text>
  476.     </content>
  477.     <content>
  478.         <layer>card</layer>
  479.         <id>12</id>
  480.         <text>Mountain</text>
  481.     </content>
  482.     <name>US time zones</name>
  483.     <script>on idle
  484. global tick
  485. global whichZone
  486. put the long time into tick
  487. put last word of card field "Zone" into whichZone
  488.  
  489. if whichZone is "Pacific" then
  490. placeTime
  491. end if
  492.  
  493. if whichZone is "Mountain" then
  494. subtractTick
  495. placeTime
  496. end if
  497.  
  498. if whichZone is "Central" then
  499. subtractTick
  500. subtractTick
  501. placeTime
  502. end if
  503.  
  504. if whichZone is "Eastern" then
  505. subtractTick
  506. subtractTick
  507. subtractTick
  508. placeTime
  509. end if
  510.  
  511. end idle
  512.  
  513. on subtractTick
  514. global tick
  515. convert tick to seconds
  516. subtract 3600 from tick
  517. convert tick to long time
  518. end subtractTick
  519.  
  520. on addTick
  521. global tick
  522. convert tick to seconds
  523. add 3600 to tick
  524. convert tick to long time
  525. end addTick
  526.  
  527. on placeTime
  528. global tick
  529. put tick into card field "Pacific"
  530. addTick
  531. put tick into card field "Mountain"
  532. addTick
  533. put tick into card field "Central"
  534. addTick
  535. put tick into card field "Eastern"
  536. end placeTime
  537.  
  538. on mouseUp
  539. visual effect scroll down
  540. go back
  541. end mouseUp
  542.  
  543. </script>
  544. </card>
  545.  
  546.  
  547.